package com.qf.smartplatform.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.smartplatform.constans.ResultCode;
import com.qf.smartplatform.valigroup.delete;
import com.qf.smartplatform.valigroup.insert;
import com.qf.smartplatform.valigroup.select;
import com.qf.smartplatform.valigroup.update;

import javax.validation.constraints.NotEmpty;

public class SysScene {
  @NotEmpty(groups = {delete.class, select.class},message ="{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"sceneId没有传递\"}" )
  private Long sceneId;
  @NotEmpty(groups = {insert.class},message ="{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"场景名没有传递\"}" )
  private String sceneName;
  private Long createBy;
  private java.util.Date createTime;
  private Long status;


  public Long getSceneId() {
    return sceneId;
  }

  public void setSceneId(Long sceneId) {
    this.sceneId = sceneId;
  }


  public String getSceneName() {
    return sceneName;
  }

  public void setSceneName(String sceneName) {
    this.sceneName = sceneName;
  }


  public Long getCreateBy() {
    return createBy;
  }

  public void setCreateBy(Long createBy) {
    this.createBy = createBy;
  }

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  public java.util.Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(java.util.Date createTime) {
    this.createTime = createTime;
  }


  public Long getStatus() {
    return status;
  }

  public void setStatus(Long status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "SysScene{" +
            "sceneId=" + sceneId +
            ", sceneName='" + sceneName + '\'' +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", status=" + status +
            '}';
  }
}
